package com.cetcs.kmga.dataManager.entity.dataManager.vo;

import java.util.LinkedList;
import java.util.List;

/**
 * 动态折线图数据格式,一个X轴对应多条Y轴数据<br></>
 *支持前端动态生成统计图
 * @author yyangs
 * @version V1.0 创建时间：2017-10-09 11:53
 * Copyright 2017 by CETC
 */
public class MultiLineChartVo {

    //统计图名称
    private String name;

    //X轴:时间数组
    private List<String> xAxis = new LinkedList<>();

    //Y轴数据,多条Y轴折现
    private List<YdataFormat> datas = new LinkedList<>();

    //Y轴数据格式
    public static class YdataFormat{

        //Y轴折线名称
        private String name;

        //Y轴折线数据,data.size() == xAxis.size()
        private List<String> data = new LinkedList<>();

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public List<String> getData() {
            return data;
        }

        public void setData(List<String> data) {
            this.data = data;
        }
    }

    public List<String> getxAxis() {
        return xAxis;
    }

    public void setxAxis(List<String> xAxis) {
        this.xAxis = xAxis;
    }

    public List<YdataFormat> getDatas() {
        return datas;
    }

    public void setDatas(List<YdataFormat> datas) {
        this.datas = datas;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
